﻿<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
    <meta http-equiv=content-type content="text/html; charset=utf-8"/>
    <link href="./css/admin.css" type="text/css" rel="stylesheet"/>
</head>
<body>
<table cellspacing=0 cellpadding=0 width="100%"
       background="./img/header_bg.jpg" border=0>
    <tr height=56>
        <td width=260></td>
        <td style="font-weight: bold; color: #fff; padding-top: 20px"
            align=middle>
        </td>
        <td style="font-weight: bold; color: #fff; padding-top: 20px"
            align="right">
            当前用户：${user.realName}
            <a onclick="onLogout()" style="color: white;margin-left: 20px">注销</a>&nbsp;&nbsp;
        </td>
    </tr>
</table>
<tabl cellspacing=0 cellpadding=0 width="100%" border=0>
    <tr bgcolor=#1c5db6 height=4>
        <td></td>
    </tr>
</tabl>
</body>
<script>
    function onLogout() {
        //必须使用父窗口的location，因为父页面使用的frameset标签,要不然只有当前head页面跳转到login.jsp
        window.parent.location.href = '/login?method=loginOut';
    }
</script>
</html>